{extend name='admin@public/content'}
{block name="button"}
<button data-open='{:url("@$classuri/useradd")}' data-title="添加商家" class='layui-btn layui-btn-sm layui-btn-primary'>添加商家</button>
<button data-update data-field='delete' data-action='{:url("$classuri/articlestatus")}' class='layui-btn layui-btn-sm layui-btn-primary'>删除</button>
{/block}
{block name="content"}

{include file='wechat@factory/search_inc'}
<form onsubmit="return false;" data-auto="true" method="post">
    <!--{if empty($list)}-->
    <p class="help-block text-center well">没 有 记 录 哦！</p>
    <!--{else}-->
    <input type="hidden" value="resort" name="action">
    <table class="layui-table" lay-skin="line">
        <thead>
        <tr>
            <th class='list-table-check-td think-checkbox'>
                <input data-auto-none="none" data-check-target='.list-check-box' type='checkbox'/>
            </th>
            <th class='text-left'>真实姓名</th>
            <th class='text-left'>手机号</th>
            <th class='text-left'>厂家名称</th>
            <th class='text-left'>经度</th>
            <th class='text-left'>纬度</th>
            <th class='text-left'>具体位置</th>
<!--            <th class='text-left'>账户积分</th>-->
<!--            <th class='text-left'>二维码链接</th>-->
          
            <th class='text-left'>添加时间</th>
            <th class='text-left'>是否绑定后台账号</th>
            <th></th>
        </tr>
        </thead>
        <tbody>
        {foreach $list as $key=>$vo}
        <tr>
            <td class='list-table-check-td think-checkbox'>
                <input class="list-check-box" value='{$vo.id}' type='checkbox'/>
            </td>
            <td class='text-left nowrap'>
                {$vo.name|default='未设置昵称'}
            </td>
            <td class='text-left nowrap'>
                {$vo.phone|default='未绑定账号'}
            </td>
            <td class='text-left nowrap'>
                {$vo.shop_name|default=''}
            </td>
            <td class='text-left nowrap'>
                {$vo.lng|default=''}
            </td>
            <td class='text-left nowrap'>
                {$vo.lat|default=''}
            </td>
            <td class='text-left nowrap'>
                {$vo.address|default=''}
            </td>
            <!--<td class='text-left nowrap'>
                {$vo.account_money|default='0'}
            </td>
            <td class='text-left nowrap'>
                {$vo.qrcode|default='0'}
            </td>-->
          

            <td class='text-left nowrap'>{$vo.create_at}</td>
            <td class='text-left nowrap'>{if condition="$vo.admin_id gt 0"}对应后台账号ID:<span class="color-red">{$vo.admin_id}</span>{else/}<span class="color-desc">未设置</span>{/if}</td>
            <td class="text-center nowrap">
                <a title="修改商户信息" data-open='{:url("@$classuri/team")}?id={$vo.id}'>查看团队</a> | <a title="修改商户信息" data-open='{:url("@$classuri/useredit")}?id={$vo.id}'>编辑</a>| <a title="修改密码" data-modal='{:url("@$classuri/pass")}?id={$vo.id}'>密码</a> | <!--<a data-modal="{:url('wechat/factory/user_balance')}?member_id={$vo.id}" data-title="操作用户余额">增加积分</a>|--> <a data-modal="{:url('wechat/factory/user_credit')}?member_id={$vo.id}&credit={$vo.credit}" data-title="修改星级">修改星级</a>|<a data-update="{$vo.id}" data-action="{:url('backadd')}">{if condition="$vo.is_disable eq 1"}禁用{else/}启用{/if}</a>
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    {if isset($page)}<p>{$page|raw}</p>{/if}
    <!--{/if}-->
</form>
{/block}

{block name="script"}
<!--表单初始化-->
<script>
    window.laydate.render({range: true, elem: '#create_at'});
    window.form.render();
</script>

{/block}
